#ifndef __CRC_H
#define __CRC_H
#include "sys.h" 



float ByteToFloat(unsigned char* byteArry);
u8 Re_ASCII_HEX(u8 *asciibyte);
//void ASCIIBuff_HexBuff(u8 *asciibyte, u8 index);
void Cal_CUC060919H_CHKSUM(u8 num,u8 *CHKSUMBuff);

void GetCrC(u8 *CmmBuf, u16 Len, u16 *resaa);
void CRC1Byte(u8 dat,u16 *res);
void CRCReset(u16 *res);
void CRC32BYTE(u32 dat,u16 *res);
void CRCByte(u8 dat,u16 *res);

u8 CTCCheck(char *p,u8 len);
u8 GetBit(u8 data,u8 bit);
u8 CRC8_1byte(u8 dat);
u8 Calcrc_byte(u8 *p,u8 len);

void FloatToByte(float fvalue,unsigned char*arr);
void OneByteto2AscII(unsigned char byte,unsigned char*asciibuff);
float ASCBuff_Float(u8 *ascbuff);
void SCU_GET_LENGTH_CRC(u8 LENID,u8 *data);
u16 ASCII_TO_INT(u8 *buff);

#endif
